package com.huimingpay.transaction.convert;

import com.huimingpay.transaction.dto.PlatformChannelDTO;
import com.huimingpay.transaction.entity.PlatformChannel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ClassName:PlatformChannelConvert
 * Package:com.huimingpay.transaction.convert
 * Time: 2024/7/23
 */

@Mapper
public interface PlatformChannelConvert {
    PlatformChannelConvert INSTANCE = Mappers.getMapper(PlatformChannelConvert.class);

    PlatformChannelDTO entity2dto(PlatformChannel entity);

    PlatformChannel dto2entity(PlatformChannelDTO dto);

    List<PlatformChannelDTO> listentity2listdto(List<PlatformChannel> PlatformChannel);

    List<PlatformChannel> listdto2listentity(List<PlatformChannelDTO> PlatformChannel);
}
